<template>
  <fieldset>
    <legend>父</legend>
    <h1>父</h1>
    <child :gg="msg" @dd="cath" />
    <child2 />
  </fieldset>
</template>

<script>
import child from "./child.vue";
import child2 from "./child2.vue";

export default {
  data() {
    return {
      msg: "tt",
    };
  },
  components: {
    child,
    child2,
  },
  methods: {
    cath(val) {
      console.log(val);
    },
  },
};
</script>
